package com.szhuang.mobilesafe.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.szhuang.mobilesafe.R;
import com.szhuang.mobilesafe.ui.SettingItemView;

/**
 * Created by szhuang on 2015/3/23.
 */
public class SetUpSecondPage extends Activity{


    ImageView last,next;
    SettingItemView bound;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setup_second_page);
        init();
        setListener();
    }

    public void init(){

        last=(ImageView)findViewById(R.id.backward);
        next= (ImageView) findViewById(R.id.forward);
        bound=(SettingItemView)findViewById(R.id.bound);
        bound.setTitle("点击绑定SIM卡");
        bound.setDesc("SIM卡没有绑定");
        bound.setChecked(false);
    }

    public void setListener(){

        last.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(SetUpSecondPage.this,SetUpFirstPage.class);
                startActivity(intent);
                finish();
                overridePendingTransition(R.anim.tran_pre_in, R.anim.tran_pre_out);
            }
        });

        next.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(SetUpSecondPage.this,SetUpThirdPage.class);
                startActivity(intent);
                finish();
                overridePendingTransition(R.anim.tran_in, R.anim.tran_out);
            }
        });
    }
}
